package com.hehe.service;

import com.hehe.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService extends Service<User>{
    int add(User user) ;

    int del(int userid);

    int update(User user);

    int update_nickname(User user);

    int update_headpic(User user);

    int updata_status( int userid,int status);

    int update_credit(int sellerid,int status);

    User findOneById(int Id);

    User findOneByname(String name);

    List<User> findAll();
}
